The TreeView control directly translates an XML hierarchy into a expandable tree structure for use in selection.
Event log:
| onError |
fires on error (when m_bDebug = true in HTC, shows alert as well)
event object propertieswindow.event.error String. Returns error detail. |
| OnItemSelect |
fires when an item selected
event object propertieswindow.event.XMLitem XMLNode. The XML node for the selected item |
| OnItemUnselect |
fires when an item unselected
event object propertieswindow.event.XMLitem XMLNode. The XML node for the unselected item |
| OnItemExecute |
fires when an item double-clicked
event object propertieswindow.event.XMLitem XMLNode. The XML node for the executed item |
| OnItemOpen |
fires when a container item is opened
event object propertieswindow.event.XMLitem XMLNode. The XML node for the opened item |
| OnItemClose |
fires when a container item is closed
event object propertieswindow.event.XMLitem XMLNode. The XML node for the closed item |
| elTreeView.UnselectAll() |
unselects all items in the list
parametersnone return valuenone |
| elTreeView.selectNode(sValue) |
selects the first item found whose node value is equal to sValue.
If not found nothing is selected and no error is returned.
parameterssValue Required. Value of field to search for. return valuenone |
| elTreeView.setActive(sValue) |
sets the first item found whose node value is equal to sValue as the active node.
If not found the previous active node (if any) is still set and no error is returned.
parameterssValue Required. Value of field to search for. return valuenone |
| elTreeView.hideActive(bHide) |
when bHide is true hides the active node and any children, otherwise shows active node
parametersbHide Required. Boolean. True hides, false displays. return valuenone |
| elControl.enableActive(bEnable) |
when bEnable is true enables the active node, otherwise disables active node
parametersbEnable Required. Boolean. True enables, false disables. return valuenone |
| elTreeView.expandActive(bExpand) |
when bExpand is true opens the active node and any children, otherwise closes active node
parametersbExpand Required. Boolean. True opens, false closes. return valuenone |
| elTreeView.expandAll(bExpand) |
when bExpand is true opens the all nodes, otherwise closes all nodes
parametersbExpand Required. Boolean. True opens all, false closes all. return valuenone |
| elTreeView.reload(sOp, sArgs) |
reloads the list using an operation configured in meta-xml.
parameterssOp is an operation child node name in meta-xml. The child nodes' id corresponds to a form in the document whose ACTION = the post page and whose elements will be sent along with any other arguments below sArgs is a list of URL-encoded page arguments to pass to the post page. Note: arguments sent by default: "op", "page" (for "newpage" op), "column" and "direction" (for sort op), "xmlrecord" (for sublist op) return valuenone |
| bRelated = elTreeView.areRelated(sFrom, sTo) |
check if there is a path in between two nodes. Returns true if they have.
parameterssFrom is a node name or caption attribute value sTo is a node name or caption attribute value return valuenone |
| DataXML | xml data (from a recordset) data-island id |